home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Software Vault: The Gold Collection
/
Software Vault - The Gold Collection (American Databankers) (1993).ISO
/
cdr35
/
ckp101.zip
/
CKPACK.DOC
< prev
next >
Wrap
Text File
|
1993-06-08
|
4KB
|
84 lines
-------------------------------------------------------------------------------
CKPACK.EXE -- quick little utility to check the callers log for packing
Written by: Robert Vostreys, FTL Sysop, 404-292-8761; 296-3120; 299-3930
Released to the Public Domain on Sat Jun 05 1993; .CPP source included.
-------------------------------------------------------------------------------
Released as 1.01 (CKP101.ZIP) due to additional of sample .CFG's for
MarkMail (CK_MMAIL.CFG) and Qmail (CK_QMAIL.CFG) doors.
-------------------------------------------------------------------------------
Roger Sligar asked me to write a quick utility to check the callers log to
find out what conferences had messages left in them by MarkMail. This is
needed so that a call to PCBPACK can be made FOR THAT CONFERENCE without
having to pack ALL of your conferences. This program does only minimal
error checking, so use it at your own risk! Sourcecode is included so you
can see exactly what it's doing (which is very straight forward).
Syntax: CKPACK.EXE ckpack.cfg
CKPACK should be run from your PCB directory if it is to make calls to
PCBPACK (since PCBPACK wants to be in the PCB directory).
Example $$LOGOFF.BAT file (which is where you should call CKPACK from):
┌─
│ @echo off
│ offhook COM1 ; use whatever you prefer, I included a quickie I wrote
│ CKPACK CKPACK.CFG
Contents of CKPACK.CFG needs to be:
Line 1: full filename of callers log to check (including node number)
Line 2: text to search for in last callers' log entries
Line 3: command to run for each conference; use %u to get the number
Example CKPACK.CFG:
┌─
│ k:\pcb\stats\caller5
│ thru MarkMail
│ pcbpack /area:%u /index /oldindex /nocaller /killbak /fast /quiet
NOTE! There can only be ONE '%' character in line 3 and it must be part of
'%u'. I'm just dumping the line given to sprintf(), so it is very easy to
have a garbled command if additional %'s are there or not using %u!
NOTE! If you include the /UPDATE param to PCBPACK, you will only update the
IDX files and *only* if PCBPACK happens to think they are "short". Therefor,
and since it's not very good at catching problems, do not use it.
When CKPACK looks at the callers log, and it finds the "thru MarkMail" (not
case sensitive), it looks around in that line for a "(####)". The number in
()'s is used as the conference number that CKPACK needs to make a packing
call for. If no ()'s are present or does not contain a number, nothing
happens.
Only ONE call is made to PCBPACK for each conference found that needs to be
updated. Thus, if 50 messages are left in conference (1), only one pack is
needed. This is done by using a large character string as a bunch of flags.
I used the system() function to execute the third line, so a command.com
shell will be loaded. You could use this to do an "echo ..." statement and/
or redirect the output using ">>output.fil".
If running multi-node *and* you are using the same \PCB directory, you will
likely need a CKPACK.CFG for each node (so the callers log number can be
specified correctly). Simply create CKPACK1.CFG, CKPACK2.CFG... etc with
different node numbers appended to the callers log filename, then, use:
CKPACK CKPACK%pcbnode%.CFG
-------------------------------------------------------------------------------
NOTE: Qmail v4 (beta) that supports the IDX has a bug where it will *not*
always update the IDX file (sigh). Until a fix is available, you will need
to use CKPACK (or some other means) to re-index your messagebases after a
user enters a message via QMail.
-------------------------------------------------------------------------------
If you have any questions or problems, please contact me (Robert Vostreys):
Faster-Than-Light 404-292-8761 [3/12/24]
(FTL) 404-296-3120 [HST1440]
404-299-3930 [v.32bis]
Roger Sligar can likely also answer of your questions:
The Right Place<tm> 404-476-2607 [HST/DS]
(TRP) 404-476-0847 [HST/DS]
-------------------------------------------------------------------------------